package com.greensam.pixelengine.repository;

import com.greensam.pixelengine.pojo.entity.UserPo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author Macro_Ray
 * @since 2025/6/16 18:05
 */
@Repository
public interface UserRepository extends JpaRepository<UserPo, Long>, QuerydslPredicateExecutor<UserPo> {

    Optional<UserPo> findByAccountAndDelete(String account, Boolean delete);

    Optional<UserPo> findByIdAndDelete(Long id, Boolean delete);
}
